#ifndef __GS_DGL__
#define __GS_DGL__

typedef struct
{
    unsigned char addr;
    float oil;
    float water;
    float temp;
}GsDGLData;

/**
 * return 0 is ok
 * return -1 is failure
 */
int gs_dgl_register(const char* port);

/**
 *
 */
void gs_dgl_unregiste();

/**
 * return 0 is ok
 * return -1 is overtime
 */
int gs_dgl_get_data(GsDGLData* data);

/**
 * return old port if is NULL failured
 */
char* gs_dgl_set_port(const char* port);

#endif
